package com.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: 柏竹
 * @Description: 分页查询类
 * @Date_Created_in: 2021-05-20 22:23
 * @Modified_By: Sans
 * @Project: 快递e栈
 */
public class ResultData <T>{
    //每次查询的数据集合
    private List<T> rows = new ArrayList<>();
    //总数量
    private int total;
    
    public ResultData() {
    }
    
    public ResultData(List<T> rows , int total) {
        this.rows = rows;
        this.total = total;
    }
    
    public List<T> getRows() {
        return rows;
    }
    
    public void setRows(List<T> rows) {
        this.rows = rows;
    }
    
    public int getTotal() {
        return total;
    }
    
    public void setTotal(int total) {
        this.total = total;
    }
    
    @Override
    public String toString() {
        return "ResultData{" +
                "rows=" + rows +
                ", total=" + total +
                '}';
    }
}
